package com.supermarket.manage.common.dto.ucenter.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 修改密码数据对象
 *
 * @author Faxon
 * @version 1.0
 * @date 2020-02-25 16:49
 **/
@Data
@ApiModel("UserPwd:修改密码数据对象")
public class UserPwdParams implements Serializable {

    private static final long serialVersionUID = 6302954258393509510L;
    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id")
    @NotNull(message = "用户id不能为空")
    private Long id;

    /**
     * 原密码
     */
    @ApiModelProperty(value = "原密码")
    private String oldPassword;

    /**
     * 新密码
     */
    @ApiModelProperty(value = "新密码")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;

    /**
     * 手机验证码
     */
    @ApiModelProperty(value = "手机验证码")
    private String code;
}
